package com.cnki.caselib.dao.ibatis;

import java.util.List;

import com.cnki.caselib.dao.CategoryDao;
import com.cnki.caselib.domain.Category;
import com.cnki.caselib.util.CrudDaoDefault;

public class CategoryDaoImpl extends CrudDaoDefault implements CategoryDao {

	public List<Category> getCategoryByPid(String pid) {
		return (List<Category>) getSqlMapClientTemplate().queryForList(
				getNameSpace() + ".getCategoryByPid", pid);
	}

	public List<Category> getAllCategory() {
		return (List<Category>) getSqlMapClientTemplate().queryForList(
				getNameSpace() + ".getAllCategory");
	}
	
	public List<Category> getAcCategory() {
		return (List<Category>) getSqlMapClientTemplate().queryForList(
				getNameSpace() + ".getAcCategory");
	}
	
	public List<Category> getCaseCategory() {
		return (List<Category>) getSqlMapClientTemplate().queryForList(
				getNameSpace() + ".getCaseCategory");
	}

}
